package com.work.cos.domain.vo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 类功能说明： principal ; 存储认证后的用户信息
 */
public class MyPrincipal implements Serializable
{
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -8242439529137271408L;

    /**
     * 用户id
     */
    private long              uid;

    /**
     * 用户名称
     */
    private String            userName;
    
    /**
     * 用户性别
     */
    private String            gender;

    /**
     * 头像地址
     */
    private String            headPicUrl;
    
    /**
     * 姓名
     */
    private String            realName;
    
    /**
     * 客服呼叫账号
     */
    private String            serviceName;

    /**
     * 客服呼叫密码
     */
    private String            serviceCode;

	/**
	 * 角色ID
	 */
	private Long              rId;

	/**
	 * 角色
	 */
	Set<String> roles = new HashSet<>(0);

	/**
	 * 权限
	 */
	Set<String> perms = new HashSet<>(0);

    
	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getServiceCode() {
		return serviceCode;
	}

	public void setServiceCode(String serviceCode) {
		this.serviceCode = serviceCode;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getHeadPicUrl() {
		return headPicUrl;
	}

	public void setHeadPicUrl(String headPicUrl) {
		this.headPicUrl = headPicUrl;
	}

	public Long getRId() {
		return rId;
	}

	public void setRId(Long rId) {
		this.rId = rId;
	}

	public Long getrId() {
		return rId;
	}

	public void setrId(Long rId) {
		this.rId = rId;
	}

	public Set<String> getRoles() {
		return roles;
	}

	public void setRoles(Set<String> roles) {
		this.roles = roles;
	}

	public Set<String> getPerms() {
		return perms;
	}

	public void setPerms(Set<String> perms) {
		this.perms = perms;
	}
}
